import React from 'react';
class Myinput extends React.Component {
  render() {
    let { value, onChange, onSubmit } = this.props;
    return <div className=''>
      <input type="text" value={value} onChange={onChange} onKeyDown={e => {
        if (e.keyCode == 13) {
          onSubmit(e)
        }
      }} />
    </div>;
  }
}
export default Myinput